package com.bean;

import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * @author wangLin
 * @version 1.0
 * @projectName spring-wl
 * @className User
 * @date 2021-03-16 周二
 * @time 11:07
 * @description TODO
 */

@Data
public class User {
    private int id;
    private String username;
    private List<String> dream;
    private Map<String, Integer> score;
    private boolean graduation;

    public User() {
        System.out.println("调用User无参数的构造方法------------");
    }

    public User(int id, String username) {
        this.id = id;
        this.username = username;
        System.out.println("调用User带参数的构造方法-------------------1");
        System.out.println("参数username:" + username + ",参数id:" + id);
    }

    public User(int id, String username, List<String> dream,
                Map<String, Integer> score, boolean graduation) {
        System.out.println("调用User带参数的构造方法-------------------2");
        this.id = id;
        this.username = username;
        this.dream = dream;
        this.score = score;
        this.graduation = graduation;
    }
}


